<?php

include './query.php';

session_start();

$phone = $_POST['phone'];
$discount = $_POST['discount'];


$ret = update_member_discount($phone, $discount);
if (! $ret) {
	$_SESSION['callback'] = '/wine/admin.php';
	// header('Location: /wine/error.php');
	echo 'error';
}

else {
	echo 'ok';
}
